<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			
			// document.cookie = "key=value;exires=过期时间"
			
			var now = new Date();
			now.setMinutes(now.getMinutes()+1);
			
			document.cookie = "username=zhangsan;expires="+now.toGMTString();
			document.cookie = "password=123456;";
			document.cookie = "age=18;";
			
			
		</script>
	</body>
</html>
